import { createRouter, createWebHashHistory } from "vue-router";
import { defaultRoutes } from "./routes";

const router = createRouter({
  //  hash 模式。
  history: createWebHashHistory(),
  routes: defaultRoutes,
});

router.beforeEach((to, from, next) => {
  next();
});

export default router;
